<!doctype html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>Document</title>
</head>
<body>
    <img src="images/poster1.png">
</body>
</html>
<script>
    var img = document.getElementsByTagName('img')[0];
    function del(){
        img.style.display = "none";
    }
    setTimeout(del,5000);//5秒后调用del函数
</script>